summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-03 18:39:08 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-03 18:39:08 +0900
commitbf3a801245a0be1d9001ee106e48cbf8b4bc73df (patch)
tree2608770bedc66c8cc5baed98306486d7dac6a6d4 /app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx
parent2f02e9ea125c3ec42afac84ec903767930335dd3 (diff)
(임수민) 페이지 타이틀과 메뉴명 일치 작업
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx b/app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx
index c5834b05..91118d90 100644
--- a/app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx
+++ b/app/[lng]/evcp/(evcp)/(system)/approval/template/page.tsx
@@ -8,6 +8,7 @@ import { getValidFilters } from '@/lib/data-table';
import { getApprovalTemplateList } from '@/lib/approval-template/service';
import { SearchParamsApprovalTemplateCache } from '@/lib/approval-template/validations';
import { ApprovalTemplateTable } from '@/lib/approval-template/table/approval-template-table';
+import { useTranslation } from "@/i18n";
export const metadata: Metadata = {
title: '결재 템플릿 관리',
@@ -15,10 +16,13 @@ export const metadata: Metadata = {
};
interface PageProps {
+ params: Promise<{ lng: string }>
searchParams: Promise<SearchParams>;
}
export default async function ApprovalTemplatePage(props: PageProps) {
+ const { lng } = await props.params
+ const { t } = await useTranslation(lng, 'menu')
const searchParams = await props.searchParams;
const search = SearchParamsApprovalTemplateCache.parse(searchParams);
// getValidFilters 반환값이 undefined 인 경우 폴백
@@ -37,7 +41,7 @@ export default async function ApprovalTemplatePage(props: PageProps) {
<div className="flex items-center justify-between space-y-2">
<div>
<div className="flex items-center gap-2">
- <h2 className="text-2xl font-bold tracking-tight">결재 템플릿 관리</h2>
+ <h2 className="text-2xl font-bold tracking-tight">{t('menu.information_system.approval_template')}</h2>
</div>
</div>
</div>
@@ -66,4 +70,4 @@ export default async function ApprovalTemplatePage(props: PageProps) {
</React.Suspense>
</Shell>
);
-} \ No newline at end of file
+}